#!/bin/sh


cat $messagePath/message-${BUILD_NUMBER} >> /tmp/simple_coding_scoring_detail_${BUILD_NUMBER}

sudo rm -rf $messagePath/simpleCodingQuiz-definition-${BUILD_NUMBER}*
sudo rm -rf $messagePath/simpleCodingQuiz-submit-${BUILD_NUMBER}*

#sudo docker cp  $JOB_NAME-$BUILD_NUMBER:/root/.gradle /var/gradle

sudo docker exec -i $JOB_NAME-$BUILD_NUMBER /bin/sh -c "rm -rf /var/${JOB_NAME}_${BUILD_NUMBER}"
sudo docker rm -f  $JOB_NAME-$BUILD_NUMBER

cat $messagePath/message-${BUILD_NUMBER}
